package com.warrior.superdata.service;

import com.warrior.superdata.exceptionhandler.ApplicationException;
import com.warrior.superdata.mysql.entity.dto.ApiDatasourceDto;
import com.warrior.superdata.mysql.entity.dto.TableFieldDto;

import java.util.List;
import java.util.Set;

/**
 * @Description:
 * @ClassName: QuerySqlService.java
 * @date: 2022/3/2 15:01
 * @author xujian
 */
public interface QuerySqlService extends SqlService{

    List<String> testSourceConnect(ApiDatasourceDto apiDatasourceDto) throws ApplicationException;

    Set<String> getTables(ApiDatasourceDto apiDatasourceDto);

    List<TableFieldDto> getTableFields(ApiDatasourceDto apiDatasourceDto, String tableName);

}
